package control

import entity.*

class Main {
    
    static void main(String[] args) {
        def catalog = new WoodCatalog(woodNames:[1:"Cherry", 2:"Curly Maple", 3:"Genuine Mahogany", 4:"Wenge", 5:"Sawdust"],
                                      bfPrices:[1:5.95, 2:6.00, 3:9.60, 4:22.35, 5:1.5],
                                      deliveryTimes:[1:0.5, 2:1.5, 3:3.0, 4:5.0, 5:0])
        def order = new Order(woods:[1:100, 4:250])
        def control = new OrderControl(catalog:catalog)
        println "${control.totalPrice(order)} ${control.totalDeliveryTime(order)}"
    }
    
}

